package com.example.anew.journey.mynewjourney.logic.splash.model;

import android.content.Context;
import android.content.SharedPreferences;

import static android.content.Context.MODE_PRIVATE;

/**
 * 杭州惟君医疗科技有限公司10
 * Created by 20433 on 2018/3/6
 */

public class SplashModel implements ISplashModel {
    // 存储数据的具体操作
    @Override
    public void StoreData() {

    }

    @Override
    public boolean takeData(Context mContext) {
        SharedPreferences sharedPreferences = mContext.getSharedPreferences("My_App_Cardiac", MODE_PRIVATE);
        boolean is_login =  sharedPreferences.getBoolean("my_is_login",false);
        return is_login;
    }
}
